<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="开通资产管理公司">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">
                            <form action="" method="post">
                                <div class="toolbor-module search">
                                    <div class="formTit">手机：</div>
                                    <input type="text" name="phone" id="phone"  value="请输入手机" class="search-value">
                                    <div class="formTit">邮箱：</div>
                                    <input type="text" name="email" id="email"  value="请输入邮箱" class="search-value">
                                    <div class="formTit">昵称：</div>
                                    <input type="text" name="userName" id="userName"  value="请输入昵称" class="search-value">
                                    <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                                </div>
                            </form>
                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <#if userList??>
                                <table class="data-list">
                                    <tr class="header">
                                        <td>注册号</td>
                                        <td>昵称</td>
                                        <td>手机</td>
                                        <td>邮箱</td>
                                        <!--<td>易极付账户</td>  -->
                                        <td>易极付激活</td>
                                        <td>资产管理公司名称</td>
                                        <td>操作</td>
                                    </tr>
                                    <#list userList as obj>
                                        <tr class="s">
                                            <td>${obj.userId!''}</td>
                                            <td>${obj.userName!''}</td>
                                            <td>${obj.phone!''}</td>
                                            <td>${obj.email!''}</td>
                                            <!-- <td>${obj.yjfId!''}</td>-->
                                            <td>
                                                <#if obj.yjfStatus?? && obj.yjfStatus==1>
                                                    <font color="green">已激活</font>
                                                    <#else>
                                                        <font color="red">未激活</font>
                                                </#if>
                                            </td>
                                            <td>
                                                <#if obj.franchisee??>
                                                    <font color="green">${obj.franchisee.name!''}&nbsp;[已申请]</font>
                                                    <#else>
                                                        <font color="red">未申请</font>
                                                </#if>
                                            </td>
                                            <td>
                                                <#if obj.franchisee??>

                                                    <#else>
                                                        <#if obj.yjfStatus?? && obj.yjfStatus==1><a href="/admin/franchisee/addFranchisee.html?userId=${obj.userId?c}">绑定</a></#if>
                                                </#if>

                                            </td>
                                        </tr>
                                    </#list>
                                </table>

                                <#else>暂无</#if>


                            <!--底部工具栏--{-->
                            <div id="bottomToolbar" class="clearfix">
                                <div class="other-tool">
                                    <dl class="refresh-data">
                                        <dt class="refresh-data-icon"></dt>
                                        <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                    </dl>
                                </div>

                                <!--翻页系统--{-->
                                <div class="container s_formPage">
                                    <#import "../../common/page.html" as pager>
                                        <@pager.pagination page=page url="/admin/franchisee/userFranchisee.html" map=params style="style1" />
                                </div>
                                <!--翻页系统--}-->
                            </div>
                            <!--底部工具栏--}-->
                        </div>
        </div>
    </div>
    <div class="mc-b">
        <#include "../foot.html">
    </div>
    <#include "../jsPage.html">
    <script type="text/javascript">
            var url='?search=true';
            function sousuo(){
                var sou = "";
                var userName = $("#userName").val();
                var phone = $("#phone").val();
                var email = $("#email").val();

                if (userName!=""&&userName!="请输入昵称"){
                    sou += "&userName="+userName;
                }
                if (phone!=""&&phone!="请输入手机"){
                    sou += "&phone="+phone;
                }
                if (email!=""&&email!="请输入邮箱"){
                    sou += "&email="+email;
                }

                if (sou!=""){
                        location.href=url+sou;
                }
            }
      </script >
    </body>
</html>